const httpUtil = require('_utils/httpUtil');
const CrudService = require('crud-service');

class ClockInTemplateService extends CrudService {
  constructor() {
    super('clock-in-templates');
  }

  querySummaryById(id) {
    return httpUtil.request({
      url: `${this.baseUrl}/${id}/summary`,
      method: 'GET',
      header: {
        Authorization: `Bearer ${getApp().globalData.token}`,
      },
    });
  }
}

const instance = new ClockInTemplateService();
module.exports = instance;
